#include<bits/stdc++.h>
using namespace std;
#define int long long
signed main() {
	int a, b;
	cin >> a >> b;
	cout << a + b - 16 << endl << a + b - 3 << endl << a + b - 1 << endl << a + b;
	return 0;
}
